package butines.core.game.pathfinder;

import butines.core.game.graph.Edge;
import butines.core.game.graph.Node;


public class NavNode extends Node<Edge<NavNode>>{

	private float x, y;

	public float getX() {
		return x;
	}

	public void setX(float x) {
		this.x = x;
	}

	public float getY() {
		return y;
	}

	public void setY(float y) {
		this.y = y;
	}

	public double distance(NavNode other) {
		float x = this.x - other.x;
		float y = this.y - other.y;
		return Math.sqrt(x*x + y*y);
	}
	
}
